const methods = {
  updateSearchCondition() {
    this.$emit('updateSearchCondition', {
      name: this.name,
      department: this.department
    });
  },
  handleSearch() {
    this.$emit('clickSearch', {
      name: this.name,
      department: this.department
    });
  },
  handleReset() {
    this.name = '';
    this.department = '';
    this.updateSearchCondition();
  }
};

export default methods;
